//
//  DSUnitExerciseViewModel.h
//  DSJY
//
//  Created by 冯华强 on 16/10/19.
//  Copyright © 2016年 dsjy. All rights reserved.
//  单元练习VM

#import "DSBaseViewModel.h"

@class DSUnitSubContent, DSUnit, DSUnitListeningContent, DSUnitExercise;
@interface DSUnitExerciseViewModel : DSBaseViewModel

//单元对象Id，继续下一单元练习的时候，可以修改此值
@property (nonatomic, strong) NSString *unitId;
//初始化
- (instancetype)initWithUnitId:(NSString *)unitId userExist:(BOOL)userExist;

//单元练习点击获取分数、上下单元的对象
@property (nonatomic, strong) DSUnitExercise *unitExercise;
//单元练习题中的所有json题，模型
@property (nonatomic, strong, readonly) DSUnitSubContent *unitSubContent;

//单元中的所有音频
@property (nonatomic, strong, readonly) NSMutableArray<DSUnitListeningContent *> *audioList;

//requestCommand请求成功，获取信号，分解DSUnitListening
@property (nonatomic, strong, readonly) RACSubject *requestSuccessSignal;

//音频下载请求命令
@property (nonatomic, strong, readonly) RACCommand *audioDownloadCommand;

//我的成绩上传请求命令
@property (nonatomic, strong, readonly) RACCommand *insertMyLearninginfoCommand;

@end
